package withdraw

import (
	"context"

	"gitee.com/spume/common_service/app/billing/api/withdraw/v1"
	"gitee.com/spume/common_service/app/billing/internal/service"
)

func (c *ControllerV1) WithdrawCreate(ctx context.Context, req *v1.WithdrawCreateReq) (res *v1.WithdrawCreateRes, err error) {

	err = service.WithdrawDetail().CreateWith(ctx, req.TenantId, req.WithdrawBatch)
	return
}
